package com.alex.taskmanager.service;

public class TaskExecutionException extends Exception {

	private boolean retry;

	public TaskExecutionException() {
	}

	public TaskExecutionException(String message, Throwable cause, boolean retry) {
		super(message, cause);
		this.retry = retry;
	}

	public TaskExecutionException(String message, boolean retry) {
		super(message);
		this.retry = retry;
	}

	public TaskExecutionException(Throwable cause, boolean retry) {
		super(cause);
		this.retry = retry;
	}

	public boolean isRetry() {
		return retry;
	}

	public void setRetry(boolean retry) {
		this.retry = retry;
	}
}
